import Vue from "vue";
import App from "./App.vue";
import router from "./router/index";
import "@/assets/style/index.less";
import store from "./store/index";

// 引入全部组件
import Vant from "@/utils/Vant.js";
Vue.use(Vant)

// 引入vue-cookie插件
import '@/utils/cookie'

// rem
import "amfe-flexible";

// 引入refreshtoken
import refreshtoken from '@/utils/refreshtoken'
Vue.use(refreshtoken)

// 引入axios
import $axios from "@/utils/request";
// 把变量挂载到vue的原型上
Vue.prototype.$axios = $axios;


Vue.config.productionTip = false;

new Vue({
    store,
    router,
    render: h => h(App)
}).$mount("#app");